#ifndef   __JOYUDPDATALIST_H
#define   __JOYUDPDATALIST_H
#include "../../client/provider/CommBridgeBase.h"
#include <list>
#include "../../common/base\LockCS.h"
#include "../../common/base/AutoLockCs.h"
#define PACK_DATA_SIZE_1 1024*5

#pragma once
//##ModelId=44C4B6170138
typedef struct Game_UDP_Data
{
	char sBuf[PACK_DATA_SIZE_1];
	int iDataLen;
	u_short  iPort;
} GAME_UDP_DATA;

//##ModelId=44C4B6170148
class JoyUDPDataList
{
public:
	//##ModelId=44C4B6170149
	JoyUDPDataList(void);
	//##ModelId=44C4B617014B
	~JoyUDPDataList(void);
	//##ModelId=44C4B617014D
	void addToList(GAME_UDP_DATA datanode);
	//##ModelId=44C4B6170158
	bool findDataInList(GAME_UDP_DATA *datanode,u_short uPort);
	//##ModelId=44C4B617015B
	void removeAllData();
	//##ModelId=44C4B617015C
	bool ListIsNotNull();


	//##ModelId=44C4B617016A
	std::list<GAME_UDP_DATA > m_GameUDPDataList;
	//##ModelId=44C4B6170178
	CLockCS                   m_GameUDPDataListLock;
};

#endif//__JOYUDPDATALIST_H
